﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Drawing.Imaging;

namespace TextRenderingTool
{
	public class TorchlightTextRenderService
	{
		public void RenderTitle()
		{
			var font = new Font("Doctor Soos Bold", 24f);
			var text = "Torchlight Mod Overseer";
			var image = new Bitmap(409, 538);
			var graphics = Graphics.FromImage(image);
			graphics.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;
			graphics.SmoothingMode = SmoothingMode.HighQuality;

			graphics.Clear(Color.Transparent);
			graphics.DrawString(text, font, new SolidBrush(Color.FromArgb(96, 74, 0)), new PointF(40, 85));
			graphics.DrawString(text, font, new SolidBrush(Color.White), new PointF(38, 83));
			image.Save(@"x:\temp\title.png", ImageFormat.Png);
		}
	}
}
